package com.qike.duola.service;

import com.qike.duola.dto.*;
import com.qike.duola.vo.*;

import java.util.List;

/**
 * @Author: Eric.zhou
 * @Date: 2020/7/31 10:29
 */
public interface DuolaCustomerService {


    /**
     * 添加客户
     * @param customerAddDto
     */
    Integer  customerAdd(CustomerAddDto customerAddDto) throws Exception;

    /**
     * 编辑客户
     * @param customerEditDto
     */
    void customerEdit(CustomerEditDto customerEditDto) throws Exception;

    /**
     * 客户列表
     * @param customerListDto
     * @return
     */
    CustomerListVo customerList(CustomerListDto customerListDto);

    /**
     * 客户详情
     * @param id
     * @return
     */
    CustomerInfoVo customerInfo(Integer id) throws Exception;

    /**
     * 跟进记录
     * @param id
     * @return
     */
    FollowListVo followList(Integer id) throws Exception;

    /**
     * 添加跟进记录
     * @param addFollowListDto
     */
    void addFollowList(AddFollowListDto addFollowListDto);

    /**
     * 客户名称下拉列表
     * @param name
     * @return
     */
    List<EnumList> customerPullList(String name);

    /**
     * 联系人下拉列表
     * @param name
     * @return
     */
    List<EnumList> contractPullList(String name);
}
